<script id="content" type="text/template">
	<div class="form-group">
    	<label>文章ID：</label>
    	<input type="text" class="form-control" readonly="readonly" value="<!--{response.get.cms_article_id}-->">
  	</div>
	<div class="form-group">
    	<label>文章名称：</label>
    	<input type="text" class="form-control" readonly="readonly" value="<!--{response.get.cms_article_name}-->">
  	</div>
  	
	<button type="button" class="btn btn-primary" name="submit-type"><span class="glyphicon glyphicon-floppy-disk"></span> 保存编辑</button>
  
  <br/><br/>
<table class="table table-striped table-hover">
  	<tbody>
  	
  	<!--if{response.cms_article_type_option.length}-->
	<!--for{var i in response.cms_article_type_option}-->
  	
    <tr>
      <th style="width: 200px;">
      	<!--{response.cms_article_type_option[i].type_name}-->
      	<!--if{parseInt(response.cms_article_type_option[i].type_state)}-->
		<!--else-->
			<span style="color: red;">隐藏</span>
		<!--/if-->
      </th>
      <td>
      	
      	<!--if{response.cms_article_type_option[i].son.length}-->
		<!--for{var s in response.cms_article_type_option[i].son}-->
		<label class="checkbox-inline" style="margin: 0px 10px;">
			<input type="checkbox" name="type-checkbox" <!--if helper{"type in_array" (response.cms_article_type_option[i].son[s].type_id, response.get.cms_article_type)}-->checked="checked"<!--/if--> style="margin-left: -16px;" value="<!--{response.cms_article_type_option[i].son[s].type_id}-->">
			<!--{response.cms_article_type_option[i].son[s].type_name}-->
			<!--if{parseInt(response.cms_article_type_option[i].son[s].type_state)}-->
			<!--else-->
			<span style="color: red;">隐藏</span>
			<!--/if-->
		</label>
		<!--/for-->
		<!--else-->
		<span style="color: #999999;margin-left: 15px;">无子选项 <a href="#/application/type/?type_parent_id=<!--{response.cms_article_type_option[i].type_id}-->" class="btn btn-default btn-xs" ><span class="glyphicon glyphicon-plus"></span> 立即添加</a></span>
		<!--/if-->
      	
      </td>
    </tr>
    
    <!--/for-->
    <!--else-->
    <span style="color: #999999;margin-left: 15px;">无分类 <a href="#/shop/type_add" class="btn btn-default btn-xs" ><span class="glyphicon glyphicon-plus"></span> 立即添加</a></span>
	<!--/if-->
    
  	</tbody>
</table>  
  
  
	<hr/>
	<span style="color: #999999;">更新时间：<!--{WangAho().date("yyyy/MM/dd HH:mm EEE", parseInt(response.get.shop_goods_update_time) * 1000)}--></span>
	<div style="height: 100px;"></div>
</script>